#ARCH:=arm-linux-
CXX:=$(ARCH)g++
CC:=$(ARCH)gcc
STRIP:=$(ARCH)strip
CFLAGS:= -std=c++11 -L/usr/include/c++/6/
OBJ:= sqlite3.o\
	  sqlite++.o

all: test.exe
	$(STRIP) $+
	@ls -shv $+
test.exe:$(OBJ) test.cc
	$(CXX) -lpthread -ldl $+ $(CFLAGS) -o  $@
%.o:%.cpp
	$(CXX) $(CFLAGS) $+ -o $@ -c
%.o:%.c
	$(CC) $+ -o $@ -c

clean:
	rm *.exe *.db
